package cn.snowtech.bluebox.repository;

import cn.snowtech.bluebox.domain.Medicine;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 药品数据访问对象.
 */
@Repository
public interface MedicineRepository extends JpaRepository<Medicine,Long> {
    List<Medicine> findByOverdure(Integer overdure);

    List<Medicine> findByNameLike(String name);
}
